﻿using System.Collections.Generic;
using DTTB.DTO;
using DTTB.SERVICE;

namespace DTTB.MV2.QUANLYNHANSUTIENLUONG.BussinessDelegate.PhanQuyen
{
    public class PermissionsAllUsersServiceDelegate
    {
        PermissionsAllUsersService PermissionsAllUsersService = new PermissionsAllUsersService();

        PathsService PathsService = new PathsService();

        public IList<PermissionsAllUsersDto> GetPermissionsAllUsers()
        {
            return this.PermissionsAllUsersService.GetAllPermissionsAllUsers();
        }

        /// <summary>
        /// Updates the permissions for all users.
        /// </summary>
        /// <param name="permissionsAllUsersDtos">The permissions all users dtos.</param>
        public void UpdatePermissionsForAllUsers(IList<PermissionsAllUsersDto> permissionsAllUsersDtos)
        {
            this.PermissionsAllUsersService.UpdatePermissionsForAllUsers(permissionsAllUsersDtos);
        }

        /// <summary>
        /// Gets all module in paths.
        /// </summary>
        /// <returns>A list of Objects</returns>
        public IList<object> GetAllModuleInPaths()
        {
            return this.PathsService.GetAllModuleInPaths();
        }

         public IList<PermissionsAllUsersDto> GetAllPermissionsAllUsers()
         {
             return this.PermissionsAllUsersService.GetAllPermissionsAllUsers();
         }

         public IList<PathsDto> GetPaths()
         {
             return this.PathsService.GetAllPaths();
         }

    }
}
